Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle NULL character as input properly #5

Merged
merged 1 commit into from
Feb 15, 2025
Merged

Conversation

jserv
Copy link
Contributor

@jserv jserv commented Feb 15, 2025

Fixes: zephyrproject-rtos/zephyr#33212

Ignoring when user inputs NULL in a text field.
menuconfig exits with a python stack trace if NULL is provided as input character, therefore ignore NULL as an input character to prevent this behaviour.

A NULL character may be given accidentally by the user through the following ways:

  • Pressing Win key on keyboard (Windows only)
  • Pressing <CTRL>-@ / <CTRL>-2.

Fixes: zephyrproject-rtos/zephyr#33212

Ignoring when user inputs NULL in a text field.
menuconfig exits with a python stack trace if NULL is provided as input
character, therefore ignore NULL as an input character to prevent this
behaviour.

A NULL character may be given accidentally by the user through the
following ways:
- Pressing `Win` key on keyboard (Windows only)
- Pressing `<CTRL>-@` / `<CTRL>-2`.

Signed-off-by: Torsten Rasmussen <[email protected]>
Signed-off-by: Jim Huang <[email protected]>
@jserv jserv merged commit 93e58ab into main Feb 15, 2025
3 checks passed
@jserv jserv deleted the fix-null-character branch February 15, 2025 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GUI configuration system (ninja menuconfig) exists with an error when the windows key is pressed
2 participants